package xcmg.device.dao.mapper.warehouse;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.warehouse.MaterialTransferDO;
import xcmg.device.service.vo.warehouse.MaterialTransferVO;

import java.util.List;

@Mapper
public interface MaterialTransferMapper {
    int deleteByPrimaryKey(String id);

    int insert(MaterialTransferDO record);

    MaterialTransferDO selectByPrimaryKey(String id);

    int update(MaterialTransferDO record);

    List<MaterialTransferDO> list(MaterialTransferVO model);

    List<MaterialTransferDO> findByIds(@Param("ids") List<String> ids);

    int findCountForExportAll(MaterialTransferVO model);

    MaterialTransferDO findLastOne(@Param("orgId") String orgId, @Param("newWarehouseCode") String newWarehouseCode, @Param("materialNo") String materialNo);
}